import 'package:flutter_demo/core/common/net/init_dio.dart';
import 'package:flutter_demo/core/common/values/server.dart';
import 'package:flutter_demo/ui/pages/treasure/module/query_home_page.dart';

class HomeApi {
  static Future<QueryHomePage> queryHomePage({
    required String pageNo,
  }) async {
    final response = await httpManager.post('/home/queryHomePage',
        {'pageNo': pageNo, 'version': "10.03", "platform": "ios"});
    logger.i(response.data);
    return QueryHomePage.fromJson(response.data);
  }
}
